QT += core widgets quick  websockets

CONFIG += c++11

DEFINES += QT_DEPRECATED_WARNINGS

#aarch64编译开关
#DEFINES += AARCH64

# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    beans/dealmsgpacket.cpp \
    beans/dealpicturethread.cpp \
    beans/maskedmousearea.cpp \
    beans/systemconfig.cpp \
    controlService/controlservice.cpp \
    main.cpp

HEADERS += \
    beans/commonstruct.h \
    beans/dealmsgpacket.h \
    beans/dealpicturethread.h \
    beans/maskedmousearea.h \
    beans/systemconfig.h \
    controlService/controlservice.h


RESOURCES += qml.qrc \
 \#    translator.qrc
    translator.qrc

TRANSLATIONS += \
    zh_CN.ts \
    en_US.ts

# Additional import path used to resolve QML modules in Qt Creator's code model
QML_IMPORT_PATH =

# Additional import path used to resolve QML modules just for Qt Quick Designer
QML_DESIGNER_IMPORT_PATH =

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

INCLUDEPATH += $$PWD/3d_libs/cppjson/include
DEPENDPATH += $$PWD/3d_libs/cppjson/include
INCLUDEPATH += $$PWD/3d_libs/mtpack/include
DEPENDPATH += $$PWD/3d_libs/mtpack/include
INCLUDEPATH += $$PWD/3d_libs/qrencode/include
DEPENDPATH += $$PWD/3d_libs/qrencode/include

win32{
    win32: LIBS += -L$$PWD/3d_libs/cppjson/win_x86_64/lib/ -ljsoncpp
    win32: LIBS += -L$$PWD/3d_libs/mtpack/win_x86_64/ -lmtpack
    win32: LIBS += -L$$PWD/3d_libs/qrencode/win_x86_64/ -lqrencode
}

unix{
    #根据 x86 和 arm64 不同架构平台进行链接库文件
    if(contains(DEFINES,AARCH64)){
        unix: LIBS += -L$$PWD/3d_libs/cppjson/arm_64/lib/ -ljsoncpp
        unix: LIBS += -L$$PWD/3d_libs/mtpack/arm_64 -lmtpack
        unix: LIBS += -L$$PWD/3d_libs/qrencode/arm_64/ -lqrencode
    }else{
        unix: LIBS += -L$$PWD/3d_libs/cppjson/linux_x86_64/lib/ -ljsoncpp
        unix: LIBS += -L$$PWD/3d_libs/mtpack/linux_x86_64/ -lmtpack
        unix: LIBS += -L$$PWD/3d_libs/qrencode/linux_x86_64/ -lqrencode
    }
}

include($$PWD/xpack/xpack.pri)
include($$PWD/packTransform/packTransform.pri)




